Silicon Labs /Series1 /WGM160 /WGM160PX22KGA3 /TIMER2 /CC1_CTRL

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CC1_CTRL

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (OFF)MODE 0 (OUTINV)OUTINV 0 (COIST)COIST 0 (NONE)CMOA 0 (NONE)COFOA 0 (NONE)CUFOA 0 (PRSCH0)PRSSEL0 (RISING)ICEDGE 0 (EVERYEDGE)ICEVCTRL 0 (PRSCONF)PRSCONF 0 (INSEL)INSEL 0 (FILT)FILT

ICEVCTRL=EVERYEDGE, MODE=OFF, CUFOA=NONE, COFOA=NONE, PRSSEL=PRSCH0, ICEDGE=RISING, CMOA=NONE

Description

CC Channel Control Register

Fields

MODE

CC Channel Mode

0 (OFF): Compare/Capture channel turned off

1 (INPUTCAPTURE): Input capture

2 (OUTPUTCOMPARE): Output compare

3 (PWM): Pulse-Width Modulation

OUTINV

Output Invert

COIST

Compare Output Initial State

CMOA

Compare Match Output Action

0 (NONE): No action on compare match

1 (TOGGLE): Toggle output on compare match

2 (CLEAR): Clear output on compare match

3 (SET): Set output on compare match

COFOA

Counter Overflow Output Action

0 (NONE): No action on counter overflow

1 (TOGGLE): Toggle output on counter overflow

2 (CLEAR): Clear output on counter overflow

3 (SET): Set output on counter overflow

CUFOA

Counter Underflow Output Action

0 (NONE): No action on counter underflow

1 (TOGGLE): Toggle output on counter underflow

2 (CLEAR): Clear output on counter underflow

3 (SET): Set output on counter underflow

PRSSEL

Compare/Capture Channel PRS Input Channel Selection

0 (PRSCH0): PRS Channel 0 selected as input

1 (PRSCH1): PRS Channel 1 selected as input

2 (PRSCH2): PRS Channel 2 selected as input

3 (PRSCH3): PRS Channel 3 selected as input

4 (PRSCH4): PRS Channel 4 selected as input

5 (PRSCH5): PRS Channel 5 selected as input

6 (PRSCH6): PRS Channel 6 selected as input

7 (PRSCH7): PRS Channel 7 selected as input

8 (PRSCH8): PRS Channel 8 selected as input

9 (PRSCH9): PRS Channel 9 selected as input

10 (PRSCH10): PRS Channel 10 selected as input

11 (PRSCH11): PRS Channel 11 selected as input

12 (PRSCH12): PRS Channel 12 selected as input

13 (PRSCH13): PRS Channel 13 selected as input

14 (PRSCH14): PRS Channel 14 selected as input

15 (PRSCH15): PRS Channel 15 selected as input

16 (PRSCH16): PRS Channel 16 selected as input

17 (PRSCH17): PRS Channel 17 selected as input

18 (PRSCH18): PRS Channel 18 selected as input

19 (PRSCH19): PRS Channel 19 selected as input

20 (PRSCH20): PRS Channel 20 selected as input

21 (PRSCH21): PRS Channel 21 selected as input

22 (PRSCH22): PRS Channel 22 selected as input

23 (PRSCH23): PRS Channel 23 selected as input

ICEDGE

Input Capture Edge Select

0 (RISING): Rising edges detected

1 (FALLING): Falling edges detected

2 (BOTH): Both edges detected

3 (NONE): No edge detection, signal is left as it is

ICEVCTRL

Input Capture Event Control

0 (EVERYEDGE): PRS output pulse and interrupt flag set on every capture

1 (EVERYSECONDEDGE): PRS output pulse and interrupt flag set on every second capture

2 (RISING): PRS output pulse and interrupt flag set on rising edge only (if ICEDGE = BOTH)

3 (FALLING): PRS output pulse and interrupt flag set on falling edge only (if ICEDGE = BOTH)

PRSCONF

PRS Configuration

INSEL

Input Selection

FILT

Digital Filter

Links

() ()